package com.travelzen._15.generic;

import java.util.*;
import static com.travelzen._15.generic.Watercolors.*;
import static com.scofevil.util.Sets.*;

public class WatercolorsSets {

	public static void main(String[] args) {
		Set<Watercolors> set1 = EnumSet.range(BRILLIANT_RED, VIRIDIAN_HUE);
		Set<Watercolors> set2 = EnumSet.range(CERULEAN_BLUE_HUE, BURNT_UMBER);
		System.out.println("set1:" + set1);
		System.out.println("set2:" + set2);
		System.out.println("union(set1,set2):" + union(set1,set2));
		Set<Watercolors> subset = intersection(set1, set2);
		System.out.println("intersection(set1,set2):" + subset);
		System.out.println("difference(set1,subset):" + difference(set1, subset));
		System.out.println("difference(set2,subset):" + difference(set2, subset));
		System.out.println("difference(set1,set2):" + difference(set1, set2));
	}
}
